/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package service.system;

import java.util.List;
import javax.swing.DefaultComboBoxModel;
import model.system.SystemGroup;
import utility.NameValueList;

/**
 *
 * @author Yusup Jauhari Shandi <in.visi>
 */
public interface SystemGroupService {
     boolean save(SystemGroup systemGroup);
    boolean delete(SystemGroup systemGroup);
    SystemGroup getSystemGroup(int id);
    SystemGroup getSystemGroup(String kode);
    List<SystemGroup> getSystemGroup();
    List<SystemGroup> getSystemGroup(int start, int num);
    List<SystemGroup> getAll(int start, int num, String params, String orderBy);
    DefaultComboBoxModel<NameValueList> getCombo(String params, String orderBy, boolean withAll);
    int getSelectedIndex(DefaultComboBoxModel<NameValueList> model,String key);
}
